package com.gitee.qdbp.general.common.api.event.model;

import java.util.List;
import com.gitee.qdbp.able.exception.ServiceException;

public abstract class EventListener<C, W extends C, U extends C> implements IEventListener<C, W, U> {

    @Override
    public void beforeCreate(C params) throws ServiceException {
    }

    @Override
    public void afterCreate(C params) throws ServiceException {
    }

    @Override
    public void beforeCreate(List<C> params) throws ServiceException {
    }

    @Override
    public void afterCreate(List<C> params) throws ServiceException {
    }

    @Override
    public void beforeUpdate(U params) throws ServiceException {
    }

    @Override
    public void afterUpdate(U params) throws ServiceException {
    }

    @Override
    public void beforeDelete(W params) throws ServiceException {
    }

    @Override
    public void afterDelete(W params) throws ServiceException {
    }

}
